<?php

namespace app\serverfavorite\service\favorite;
use app\manage\service\ApiBase;

/**
 * @author:      李颖
 * @DateTime:    2017-06-12 11:08:11
 * @Description: 收藏
 */

class Favorite extends ApiBase
{
	
	protected $favoriteLogic = '\app\serverfavorite\logic\Favorite';
    protected $favoriteValidate = '\app\serverfavorite\validate\Favorite';

    use \app\serveruser\traits\AddAppIdToRunOne;

    
    /*获取一个收藏详情*/
    /*public function favoriteInfo(): array 
    {
    	$data = $this->receiveData(['id'=>0,'token'=>' ']);
        return $this->_addAppIdToRunOne($data, 'serverfavorite/favorite/Favorite/favoriteInfo', $this->favoriteValidate, $this->favoriteLogic, false);
    }*/
    
    /*后台管理员获取收藏列表  有收藏快照*/
    public function favoriteList(): array 
    {
    	$data = $this->issetReceiveData(['user_id'=>0,'page'=>1,'listRows'=>15,'token'=>' ']);
        return $this->_addAppIdToRunOne($data, 'serverfavorite/favorite/Favorite/favoriteList', $this->favoriteValidate, $this->favoriteLogic, false);
    }

    
}






